layui.define(['layer', 'form','webApi'], function(exports){
    var layer = layui.layer
        ,form = layui.form,
        webApi=layui.webApi;
    console.log((webApi));
    webApi.hello().then(data=>{
        var img = new Image();
        img.src=URL.createObjectURL(data);
        document.body.appendChild(img);
    });
    layer.msg('Hello World');
});